import json

json_data = {"name": "张三", "age": 18}
print(json.dumps(json_data, indent=4, ensure_ascii=False))